package org.xjtu.weteam.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.xjtu.weteam.model.domain.Project;
import org.xjtu.weteam.model.dto.ProjectDTO;
import java.util.List;

/**
 * @author Kevin
 */
public interface ProjectService extends IService<Project> {

    Project projectSearchById(Integer projectId);
    List<Project> listProjects(Integer teamId);

    /**
     * 添加项目
     * @param project
     * @return
     */
    int insertProject(Project project);

    List<ProjectDTO> selectProjectAndItsNum(Integer teamId);

    int changeStatus(Integer projectId, String newStatus);
}
